import {defineStore} from "pinia";
export const useCounterStore = defineStore(
    'counter',
    {
        state:()=>({
            count:1,
            name:'你好'
        }),
        actions:{
            increment(){
                this.count++
            }
        }
    }
)